#include <iostream>

#include "net/net.h"
#include "kxlua/kxlua.h"

int main() {
    kxlua::IMachine* machine = kxlua::CreateMachine();
    machine->GetKxlib()->GetLib("net")->Open();
    machine->GetLua()->DoFile("/home/kazex/projects/kazex/applications/luabind/build/bin/main.lua");
    std::cout<<machine->GetLua()->GetLastError()<<std::endl;
    net::GetReactor()->Dispatch();
    return 0;
}
